import Vue from "vue";
import VueRouter from "vue-router";
import HomeVue from "../components/Home.vue";
import RandomTestVue from "../views/RandomTest.vue";
import SequenceTestVue from "../views/SequenceTest.vue";
import testRecordVue from "../views/testRecord.vue";
import ExamLibraryVue from "../views/ExamLibrary.vue";
Vue.use(VueRouter);

const routes = [
	{
		path:'/',
		name:'home',
		component:HomeVue,
		children:[
			{
				path:'/randomTest',
				name:'randomTest',
				component:RandomTestVue
			},
			{
				path:'/testRecord',
				name:'testRecord',
				component:testRecordVue
			},
			{
				path:'/sequenceTest',
				name:'sequenceTest',
				component:SequenceTestVue
			},
			{
				path:'/examLibrary',
				name:'examLibrary',
				component:ExamLibraryVue
			}
		]
	}
]

const router = new VueRouter({
	mode: "hash",
	routes:routes
})

export default router;